package com.badminton.web.mapper;

import com.badminton.web.model.UserEvaluateDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: peng.chen
 * @CreateTime: 2025-02-11
 * @Description:
 * @Version: 1.0.0
 */
@Mapper
public interface UserEvaluateMapper {
    Integer insertUserEvaluateInfo(@Param("userEvaluateDO") UserEvaluateDO userEvaluateDO);

    List<UserEvaluateDO> queryUserEvaluateInfoByPage(@Param("userId") Long userId,
                                                     @Param("evaluateUserId") Long evaluateUserId,
                                                     @Param("offset") Integer offset,
                                                     @Param("pageSize") Integer pageSize);

    Integer countUserEvaluateInfo(@Param("userId") Long userId,
                                 @Param("evaluateUserId") Long evaluateUserId);
}
